<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" template="/templates/default.xhtml">
	<ui:define name="title">
		<h:outputText value="#{messages['label.login']}" />
	</ui:define>
	<ui:define name="content">
		<h:form id="formLogin">
			<rich:panel header="#{messages['label.user']}" style="width: 300px; margin: auto;">
				<table style="width: 100%;">
					<tr>
						<td style="width: 25%;"><h:outputText value="#{messages['label.login']}" /> : </td>
						<td style="width: 75%;">
							<h:inputText value="#{credentials.username}" id="j_username" name="j_username" size="15" maxlength="45" />
						</td>
					</tr>
					<tr>
						<td><h:outputText value="#{messages['label.password']}" /> : </td>
						<td>
							<h:inputSecret value="#{credentials.password}" id="j_password" name="j_password" size="15" maxlength="20" />
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: center;">
							<h:commandButton value="#{messages['label.login']}" action="#{identity.login}" />
						</td>
					</tr>
				</table>					
			</rich:panel>
		</h:form>
	</ui:define>
</ui:composition>